<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> 
<head>
<title>GetResponse  Sample</title>
<link rel="stylesheet" type="text/css" href="../../../../docs/rotor.css">
</head>

<body>		


<h1>GetResponse  Sample</h1>


<h2>Sample Overview</h2>


<p>This sample demonstrates the use of the  <b>WebRequest</b> and <b>WebResponse</b> 
classes in the <b>System.Net</b> namespace by getting HTML pages from a URL that is input by the user and then outputting the 
URL to the console.&nbsp; The sample illustrates the use of proxies with 
<b>WebRequest</b> instances as well as asynchronous input and output, and threading.</p>


<h2>Sample Source and Build Output Locations</h2>


<p>The sample source is found in sscli20\samples\howto\net\getresponse.&nbsp; </p>


<p>The source file is:</p>


<ul class="none">
  <li><a href="getresponse.cs">getresponse.cs</a></li>
</ul>


<p>The build output location is %_NTTREE%\samples\howto\net\getresponse.&nbsp;The output file is an executable assembly named getresponse.exe.</p>


<h2>Building the Sample</h2>


<p>All samples are built from the buildall script.&nbsp;  </p>


<p>You can also build all the 
samples by switching to the root of the sample directory, sscli20\samples, and typing 
<code>build -c</code>.</p>


<p>You can build this specific sample  by switching to the sample directory and typing 
<code>build -c</code>.</p>


<h2>Running the Sample</h2>


<p>These steps require that the Shared Source CLI (SSCLI) be already built and 
functional.</p>


<ol>
  <li>Run env.bat. </li>
  <li>Switch to the %_NTTREE%\samples\howto\net\getresponse directory.</li>
  <li>Type the following command:<blockquote>


<p>clix getresponse.exe</p>


  </blockquote>


  </li>
</ol>


<hr>


<p><i>Copyright (c) 2006 Microsoft Corporation. All rights reserved.</i></p>
</body> 
</html>